package cn.yuanqiao.archive.appManager.service;

import cn.yuanqiao.archive.appManager.domain.TenantApply;
import com.alibaba.fastjson2.JSONObject;

import java.util.List;
import java.util.Map;

/**
 * applymodelService接口
 *
 * @author 赵常飞
 * @date 2023-06-16
 */
public interface ITenantApplyService
{
    /**
     * 查询applymodel
     *
     * @param menuId 菜单id
     * @param categoryId 门类id
     * @return applymodel
     */
    public TenantApply selectYqdaApplyModelById(Long menuId, Long categoryId);

    /**
     * 查询applymodel列表
     *
     * @param yqdaApplyModel applymodel
     * @return applymodel集合
     */
    public List<TenantApply> selectYqdaApplyModelList(TenantApply yqdaApplyModel);

    /**
     * 新增applymodel
     *
     * @param yqdaApplyModel applymodel
     * @return 结果
     */
    public int insertYqdaApplyModel(TenantApply yqdaApplyModel);

    /**
     * 修改applymodel
     *
     * @param yqdaApplyModel applymodel
     * @return 结果
     */
    public int updateYqdaApplyModel(TenantApply yqdaApplyModel);

    /**
     * 批量删除applymodel
     *
     * @param categoryId 门类id
     * @param menuId 菜单id
     * @return 结果
     */
    public int deleteYqdaApplyModel(Long categoryId, Long menuId);

    /**
     * 删除applymodel信息
     *
     * @param Id applymodel主键
     * @return 结果
     */
    public int deleteYqdaApplyModelById(Long Id);

    int clonefield(JSONObject json);

    List<Map<String,String>> selectYqdaApplyModelListmenu(String menuName,Long categoryId);

    List<Map<String,String>> listAllMenu(Long categoryId);

    String getfieldlist(JSONObject json);

    int deletebycatemenu(com.alibaba.fastjson.JSONObject json);
}
